Force C.UTF-8 or C locale for tests
authorSimon McVittie <smcv@debian.org>
Sat, 8 Oct 2016 13:19:01 +0000 (14:19 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Sat, 29 Oct 2016 18:12:42 +0000 (18:12 +0000)
commit7091d288f7e1648314dc984da0c0abb5794834fb
tree395854a23a1910baeae5678375943378324ee226
parenta15dc7f1913e0aaceebbba329db13faf836f3745
Force C.UTF-8 or C locale for tests

Otherwise several tests fail, for example in this build done in a French
locale by Debian's reproducible builds initiative, to check whether
the resulting binaries are identical to what was produced in an
English locale:

<https://tests.reproducible-builds.org/debian/logs/unstable/amd64/ostree_2016.11-1.build2.log.gz>

(test-basic)
# error: Cannot write to repository: Permission non accordée
...
File 'error-message' doesn't match regexp 'Permission denied'

(test-help)
# Utilisation :
#   ostree [OPTION...] COMMAND
...
File 'out' doesn't match regexp '[Uu]sage'

(test-pull-metalink)
# error: Erreur à la ligne 1, caractère 1 : Le document doit commencer avec un élément (par ex. <book>)
...
File 'err.txt' doesn't match regexp 'Document must begin with an element'

Signed-off-by: Simon McVittie <smcv@debian.org>
Closes: #558
Approved by: cgwalters
tests/libtest.sh